package cn.cs.fallback;

import cn.cs.client.AgentClient;
import cn.cs.client.CsPartsClient;
import cn.cs.pojo.Agent;
import cn.cs.pojo.CsParts;
import cn.cs.pojo.CsPartsAttribute;
import cn.cs.pojo.CsPartsQrCode;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * 类似于try catch中的catch块中的内容，即发生错误时，处理的过程
 * 是用来发生熔断时的顶包组件,因此也必须实现接口
 * 异常时做一些处理，给用户一个交代
 * */
@Component
public class CsPartsFallBack implements CsPartsClient {

    @Override
    public CsParts getCsPartsById(String id) throws Exception {
        return null;
    }

    @Override
    public CsParts getCsPartsByName(String parts_name) throws Exception {
        return null;
    }

    @Override
    public List<CsParts> getCsPartsByFactoryId(String factory_id, String factory_name, String parts_name) throws Exception {
        return null;
    }

    @Override
    public List<CsParts> getCsPartsListByMap(Map<String, Object> param) throws Exception {
        return null;
    }

    @Override
    public Integer getCsPartsCountByMap(Map<String, Object> param) throws Exception {
        return null;
    }

    @Override
    public Integer insertCsParts(CsParts csParts) throws Exception {
        return null;
    }

    @Override
    public Integer addPartsAttribute(CsPartsAttribute partsAttribute) throws Exception {
        return null;
    }

    @Override
    public Integer updateCsParts(CsParts csParts) throws Exception {
        return null;
    }

    @Override
    public Integer updatePartsAttribute(CsPartsAttribute partsAttribute) throws Exception {
        return null;
    }

    @Override
    public Integer deleteCsPartsById(String id) throws Exception {
        return null;
    }

    @Override
    public Integer deleteCsPartsImgByPartsId(String partsId) throws Exception {
        return null;
    }

    @Override
    public Integer deletePartsAttribute(String id) throws Exception {
        return null;
    }

    @Override
    public Integer insertCsPartsImgList(List<Map<String, Object>> list) throws Exception {
        return null;
    }

    @Override
    public Integer insertCsPartsQRcodeList(List<Map<String, Object>> list) throws Exception {
        return null;
    }

    @Override
    public Integer updateCsPartsQRcode(Map<String, Object> map) throws Exception {
        return null;
    }

    @Override
    public List<Map<String, Object>> getCsPartsQRcodeListByMap(Map<String, Object> param) throws Exception {
        return null;
    }

    @Override
    public Integer getCsPartsQRcodeCountByMap(Map<String, Object> param) throws Exception {
        return null;
    }

    @Override
    public List<Map<String, Object>> getHistoryByQRcode(String QRcode) throws Exception {
        return null;
    }

    @Override
    public Map<String, Object> getPartsByQRcode(String QRcode) throws Exception {
        return null;
    }

    @Override
    public List<Map<String, Object>> getPartsSellNum(Map<String, Object> param) throws Exception {
        return null;
    }

    @Override
    public Integer getPartsSellNumCount(Map<String, Object> param) throws Exception {
        return null;
    }

    @Override
    public Long getQrcodeMax(String partsId) throws Exception {
        return null;
    }

    @Override
    public List<Map<String, Object>> getPartsQrcodeList(String partsId, String startCode, String endCode) throws Exception {
        return null;
    }

    @Override
    public List<CsPartsQrCode> getPartsQrcodeListEntity(String partsId, String startCode, String endCode) throws Exception {
        return null;
    }
}
